import Layout from '@/layout'

const systemRouter = {
    path: '/system',
    component: Layout,
    redirect: '/system/banner',
    name: 'System',
    meta: {
        title: 'system',
        icon: 'nested',
        roles: ['other'] // you can set roles in root nav
    },
    children: [
        {
            path: 'setting',
            component: () => import('@/views/system/setting'),
            name: 'Banner',
            meta: {
                title: 'app开关',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'banner',
            component: () => import('@/views/system/banner'),
            name: 'Banner',
            meta: {
                title: 'banner',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'richtextlist',
            component: () => import('@/views/system/richtext/richtext'),
            name: 'RichtextList',
            meta: {
                title: 'richtext',
                roles: ['other']
            }
        },
        {
            path: 'richtextinfo',
            component: () => import('@/views/system/richtext/info'),
            name: 'RichtextInfo',
            hidden: true,
            meta: {
                title: 'richtextinfo',
                roles: ['other']
            }
        },
        {
            path: 'recommendation',
            component: () => import('@/views/system/recommendation'),
            name: 'Recommendation',
            meta: {
                title: 'recommendation',
                roles: ['other']
            }
        },
        {
            path: 'activitycenter',
            component: () => import('@/views/system/activitycenter'),
            name: 'ActivityCenter',
            meta: {
                title: 'activitycenter',
                roles: ['other']
            }
        },
        {
            path: 'noviceguide',
            component: () => import('@/views/system/noviceGuide'),
            name: 'NoviceGuide',
            meta: {
                title: 'bovuceguide',
                roles: ['other'] // or you can only set roles in sub nav
            }
        },
        {
            path: 'save',
            component: () => import('@/views/system/save'),
            name: 'Save',
            meta: {
                title: 'save',
                roles: ['other']
            }
        },
        {
            path: 'reward',
            component: () => import('@/views/system/reward'),
            name: 'Reward',
            meta: {
                title: 'reward',
                roles: ['other']
            }
        },
        {
            path: 'operate',
            component: () => import('@/views/system/operate'),
            name: 'Operate',
            meta: {
                title: 'operate',
                roles: ['other']
            }
        },
        {
            path: 'loginlog',
            component: () => import('@/views/system/loginLog'),
            name: 'LoginLog',
            meta: {
                title: 'loginlog',
                roles: ['other']
            }
        },
        {
            path: 'page',
            component: () => import('@/views/permission/page'),
            name: 'PagePermission',
            meta: {
                title: 'pagePermission',
                roles: ['permission']
            }
        },
        {
            path: 'account',
            component: () => import('@/views/permission/account'),
            name: 'AccountPermission',
            meta: {
                title: 'accountPermission',
                roles: ['account']
            }
        },
        {
            path: 'role',
            component: () => import('@/views/permission/role'),
            name: 'RolePermission',
            meta: {
                title: 'rolePermission',
                roles: ['role']
            }
        }
    ]
}

export default systemRouter
